﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace FirmaTransportowa
{
    public partial class StatisticsPanel : Form
    {
        public StatisticsPanel()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            StatisticsPanelVehicleView statisticsPanelVehicleView = new StatisticsPanelVehicleView();
            statisticsPanelVehicleView.Show();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            StatisticsPanelRouteView statisticsPanelRouteView = new StatisticsPanelRouteView();
            statisticsPanelRouteView.Show();
        }

        protected override void OnFormClosing(FormClosingEventArgs e)
        {
            if (e.CloseReason == CloseReason.UserClosing)
            {
                Application.Exit();
            }
        }
    }
}
